#!/bin/bash

echo "############################################################"
echo "Running API tests..."

export APPDATA=appdata/test01
export DOCUMENT_ROOT=/www/dbfoundry.com/htdocs

rm -f phpunit.api.*
> debug.out

       #--verbose \

phpunit \
       --log-tap phpunit.api.tap \
       Tests-API > phpunit.api.out 2> phpunit.api.err

echo "Running API tests... Complete. exit($?)"
tail -n 10 phpunit.api.tap phpunit.api.err

exit


